﻿<Window x:Class="WPFDeveloperTools.Controls.SampleApp.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPFDeveloperTools.Controls.SampleApp" Height="768" Width="1024"
    xmlns:clb="clr-namespace:WPFDeveloperTools.Controls.CheckedListBox;assembly=WPFDeveloperTools.Controls"
    xmlns:ftb="clr-namespace:WPFDeveloperTools.Controls.FilteredTextBox;assembly=WPFDeveloperTools.Controls"
    xmlns:cp="clr-namespace:WPFDeveloperTools.Controls.CollapsiblePanel;assembly=WPFDeveloperTools.Controls"
    xmlns:cb="clr-namespace:WPFDeveloperTools.Controls.ConfirmButton;assembly=WPFDeveloperTools.Controls"
    xmlns:cbFont="clr-namespace:WPFDeveloperTools.Controls.ComboBoxFontSelection;assembly=WPFDeveloperTools.Controls"
    xmlns:ccb="clr-namespace:WPFDeveloperTools.Controls.CheckedComboBox;assembly=WPFDeveloperTools.Controls"
    xmlns:brc="clr-namespace:WPFDeveloperTools.Controls.BindableRunControl;assembly=WPFDeveloperTools.Controls"
    xmlns:rtb="clr-namespace:WPFDeveloperTools.Controls.RichTextBoxWithToolBar;assembly=WPFDeveloperTools.Controls"
    xmlns:pc="clr-namespace:WPFDeveloperTools.Controls.PresenceControl;assembly=WPFDeveloperTools.Controls"
    xmlns:clock="clr-namespace:WPFDeveloperTools.Controls.RealTimeClockTextBlock;assembly=WPFDeveloperTools.Controls"
    xmlns:graph="clr-namespace:WPFDeveloperTools.Controls.Graph;assembly=WPFDeveloperTools.Controls"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:collections="clr-namespace:System.Collections;assembly=mscorlib"
    >
  <Grid>
    <TabControl>
      <TabItem Header="Checked ListBox">
        <clb:CheckedListBox x:Name="checkedLb">
          <sys:String>Item 1</sys:String>
          <sys:String>Item 2</sys:String>
          <sys:String>Item 3</sys:String>
          <sys:String>Item 4</sys:String>
          <sys:String>Item 5</sys:String>
        </clb:CheckedListBox>
      </TabItem>

      <TabItem Header="FilteredTextBox">
        <StackPanel>
          <ftb:FilteredTextBox Type="Letters" LabelInfo="Here, you will enter only letters" HorizontalAlignment="Center" VerticalAlignment="Center" />

          <ftb:FilteredTextBox Type="Digits" LabelInfo="Digits Only:" HorizontalAlignment="Center" VerticalAlignment="Center" />

          <ftb:FilteredTextBox Type="Punctuation" LabelInfo="Punctuation sign only:" HorizontalAlignment="Center" VerticalAlignment="Center" />

          <ftb:FilteredTextBox Type="Symbol" LabelInfo="Use only symbols here" HorizontalAlignment="Center" VerticalAlignment="Center" />
        </StackPanel>
      </TabItem>

      <TabItem Header="Collapsible Panel">
        <cp:CollapsiblePanel Header="Some Informations" InfoToShow="Here, you can display some informations to your users. That's cool :)" />
      </TabItem>

      <TabItem Header="Confirm Button">
        <cb:ConfirmButton ConfirmButtonTitle="Format Drive ?" ConfirmSentence="Are you sure you want to format C:\ ?" Content="Confim !" HorizontalAlignment="Center" VerticalAlignment="Center" Click="ClickOnConfirmButton" />
      </TabItem>

      <TabItem Header="ComboBox Font Selection">
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.2*" />
            <ColumnDefinition Width="0.8*" />
          </Grid.ColumnDefinitions>

          <cbFont:ComboBoxFontSelection x:Name="cbSelectFont"  MouseMove="OnFontSelectionMouseMove" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0" />

          <RichTextBox VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1" x:Name="richTb" Width="400" Height="400"  AcceptsReturn="True" />
        </Grid>
      </TabItem>

      <TabItem Header="Checked ComboBox">
        <!--
            Need to use ComboBoxItem !
          -->
        <ccb:CheckedComboBox HorizontalAlignment="Center" VerticalAlignment="Center">
          <ComboBoxItem>
            <sys:String>Item 1</sys:String>
          </ComboBoxItem>
          <ComboBoxItem>
            <sys:String>Item 2</sys:String>
          </ComboBoxItem>
          <ComboBoxItem>
            <sys:String>Item 3</sys:String>
          </ComboBoxItem>
          <ComboBoxItem>
            <sys:String>Item 4</sys:String>
          </ComboBoxItem>
          <ComboBoxItem>
            <sys:String>Item 5</sys:String>
          </ComboBoxItem>
        </ccb:CheckedComboBox>
      </TabItem>

      <TabItem Header="Bindable Run Control">
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.2*" />
            <ColumnDefinition Width="0.8*" />
          </Grid.ColumnDefinitions>

          <Button Content="Bind Text" Click="OnBindButtonClick" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0" />

          <FlowDocumentPageViewer HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1">
            <FlowDocument>
              <Paragraph>
                <brc:BindableRunControl x:Name="m_RunBindable" />
              </Paragraph>
            </FlowDocument>
          </FlowDocumentPageViewer>
        </Grid>
      </TabItem>

      <TabItem Header="RichTextBox With ToolBar">
        <rtb:RichTextBoxWithToolBar x:Name="CustomrichTb" AcceptsReturn="True" />
      </TabItem>

      <TabItem Header="Presence Control">
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.2*" />
            <ColumnDefinition Width="0.8*" />
          </Grid.ColumnDefinitions>

          <StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Button Click="ChangeStatusClick" Width="87" Height="25" Content="Change Status"/>
            <TextBlock />

            <TextBlock Text="Previous Status:" />
            <TextBlock x:Name="m_tbPreviousStatus" />

            <TextBlock />

            <TextBlock Text="New Status:" />
            <TextBlock x:Name="m_tbNewStatus" />
          </StackPanel>

          <pc:PresenceControl x:Name="MyPresenceControl" UserStatus="Online" ToolTipToDisplay="Status for a specific user" XCoordonate="50" YCoordonate="50" XRadius="7" YRadius="7" Grid.Column="0" />
        </Grid>
      </TabItem>

      <TabItem Header="RealTimeClock TextBlock">
        <clock:RealTimeClockTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" />
      </TabItem>

      <TabItem Header="Graph">
        <TabItem.DataContext>
          <collections:ArrayList>
            <sys:Int32>25</sys:Int32>
            <sys:Int32>99</sys:Int32>
            <sys:Int32>56</sys:Int32>
          </collections:ArrayList>
        </TabItem.DataContext>

        <graph:Graph ItemsSource="{Binding}" Legend="Various numbers" GraphOrientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" />
      </TabItem>
    </TabControl>
  </Grid>
</Window>